<?php
/** 
 * sysConstant
 * @author    Soochow University
 * @version   0.1
 * @exclude   作  成  日：2011/04/06
 */
class sysConstant {

    const CONFIG_APP_PATH = "application/configs/application.ini";

    const CONFIG_DB_PATH = "application/configs/dbConfig.ini";

    const CONFIG_VARIABLE_PATH="application/configs/globalVariableConfig.ini";

    const CONFIG_MENU_PATH="application/configs/Mfile.xml";

    const CONFIG_PAGESIZE_PATH="../application/configs/pagesize.xml";
    const CONFIG_PROV_PATH="../application/configs/prov.xml";

    //***********************************************************

    const MODULES_PATH = "../application/modules/";
    const MODULES_PATH_LOAD = "application/modules/";
    const MODULE_DIRECTORY_NAME = "controllers";

    const VIEWS_DIRECTORY = "/views";
    const TEMPLAT_DIRECTORY = "/templates";
    const TEMPLAT_C_DIRECTORY = "/templates_c";

    const APP_LANGUAGES_DIRECTORY ="../application/languages/";
    const LANGUAGES_DIRECTORY = "/languages/";
    //**********************************************************
    const APPCONFIG_SYS = "sys";

    const GLOBAL_CONFIG="global";
    
    const LDAP = "LDAPSVR";
    const SMARTY = "smarty";
    const DOMAIN = "domain";
    const URI_INTERCEPT = "uriIntercept";
    
    const SYS_TRANSLATE = "sys_translate";
    
    const VARIABLE="variable";
    const MAIL = "mail";
    const IMAGE = "image";
    //** ALIPAY **/
    const ALIPAY = "alipay";
    const SSH_USER = "SSH_USER";
    const FTPSVR ="FTPSVR";
    const SMTPSVR = "SMTPSVR";
    const RPHSGWV = "RPHSGWV";
    const VARNISH = "varnish";
    const SAVE_DOMAIN_CONFIG = "SAVE_DOMAIN_CONFIG";

    //*********************************************************

    const CONTROLLER_NAME = 'login';

    const CONTROLLER_INDEX_NAME = 'Index';

    const CONTROLLER_ERROR_NAME = 'Error';

    //**********************************************************

    const PDO_MYSQL = "PDO_MYSQL";
    const DB_NAME_EPSITE = "EPSite";
    const DB_DISTINGUISHSUBSTR_M = "1";

    const DB_DISTINGUISHSUBSTR_S = "2";
    //*********************
    const USERDATA = "userdata";
    const LOGINUSERID = "LoginUserId";
    const LOGINUSERNO = "LoginUserNo";
    const SSOLOGINUSERNO = "SSOLoginUserNo";
    const LOGINUSERNAME = "LoginUserName";
    const SHOPOWERID = "ShopOwerId";
    const SHOPOWERNO = "ShopOwerNo";
    const USERPERMISSIONS = "UserPermissions";
    const STORAGEPATH ="StoragePath";

    const LOGO ="LOGO";
    const USER_DISTINGUISH = "UserDistinguish";

    //************************
    const ONLINE_ID = "onlineId";
    const HASH_VALUE = "ROOK";
    //************************
    const GOODS_VARIATION_ID = "GOODS_VARIATION_ID";
    const GOODS_VARIATION_OPTION_ID = "GOODS_VARIATION_OPTION_ID";
    //************************

    const USER_AUTH_ID_EXIST="1";
    const USER_AUTH_ID_NO="0";
    const CONFIG_MANUAL_PATH = "application/configs/Manualfile.xml";

}

/** 
 * mailConstant
 * @author    Soochow University
 * @version   0.1
 * @exclude   作  成  日：2011/04/06
 */
class mailConstant {
    const TO       = "to";
    const CC       = "cc";
    const BCC      = "bcc";
    const FROM     = "from";
    const BODY     = "body";
    const REPLYTO  = "replyto";
    const RETRUNTO = "returnto";
    const ERRORTO  = "errorto";
    const SUBJECT  = "subject";
}

/**
 * pageSizeGroup
 * @author    Soochow University
 * @version   0.1
 * @exclude   作  成  日：2011/04/06
 */
class pageSizeGroup {
    const PAGE_SIZE_DEFAULT = "pageSizeDefault";
    const PAGE_SIZE_TEN     = "pageSizeTen";
}

/**
 * display
 * @author    Soochow University
 * @version   0.1
 * @exclude   作  成  日：2011/04/06
 */
class display {
    const SHOW = true;
    const HIDE = false;
}
